﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System;

[CustomEditor(typeof(PolygonCollider))]
public class PolygonEditor : ColliderEditor
{
    private void OnSceneGUI()
    {
        PolygonCollider colider = target as PolygonCollider;
        List<Vector3> mBounds = colider.mBounds;

        for (int i = 0; i < mBounds.Count; i++)
        {
            Vector3 vec = Handles.PositionHandle(mBounds[i], Quaternion.identity);
            vec.y = 0;
            mBounds[i] = vec;
        }
    }
}
